package businesslogic.salebl;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.ArrayList;

import vo.ClientVO;
import vo.GoodsVO;
import vo.SalesInfoVO;
import vo.SalesVO;
import businesslogicservice.saleblservice.SalesBLService;

public class SalesController extends UnicastRemoteObject implements SalesBLService{


	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Sales sales;
	
	public SalesController() throws RemoteException {
		super();
		sales = new Sales();
		// TODO Auto-generated constructor stub
	}
	
	public ArrayList<ClientVO> showClientList() {
		// TODO Auto-generated method stub
		return sales.showClientList();
	}

	public ArrayList<GoodsVO> showGoodsList() {
		// TODO Auto-generated method stub
		return sales.showGoodsList();
	}

	public boolean addClient(ClientVO vo) {
		// TODO Auto-generated method stub
		return sales.addClient(vo);
	}

	public boolean addGoods(String loc, int number, double unitPrice, String notes) {
		// TODO Auto-generated method stub
		return sales.addGoods(loc, number, unitPrice, notes);
	}

	public boolean addOtherInfo(SalesInfoVO vo) {
		// TODO Auto-generated method stub
		return false;
	}

	public ArrayList<SalesVO> showSales() {
		// TODO Auto-generated method stub
		return null;
	}

	public boolean salesReturn(int loc) {
		// TODO Auto-generated method stub
		return false;
	}

	public double getTotal() {
		// TODO Auto-generated method stub
		return sales.getTotal();
	}

	public boolean creatSales() {
		// TODO Auto-generated method stub
		return false;
	}

	public void endSales() {
		// TODO Auto-generated method stub
		
	}

	public boolean removeClient() throws RemoteException {
		// TODO Auto-generated method stub
		return false;
	}

	public boolean removeGoods(int loc) throws RemoteException {
		// TODO Auto-generated method stub
		return false;
	}

}
